Improved Update/Query Algorithms for the Interval Valuation Problem

نویسندگان

  • Daniel S. Hirschberg
  • Dennis J. Volper
چکیده

Let I be the set of intervals with end points in the integers 1 : : :n. Associated with each element in I is a value from a commutative semigroup S. Two operations are to be implemented: update of the value associated with an interval and query of the sum of the values associated with the intervals which include an integer. If the values are from a commutative group (i.e., inverses exist) then there is a data structure which enables both update and query algorithms of time complexity O(logn). For the semigroup problem, the use of range trees enables both update and query algorithms of time complexity O(log 2 n). Data structures are presented for the semigroup problem with (update,query) algorithms of complexities (logn, log 2 n), (logn log logn, logn). Introduction Let I be the set of intervals with end points in the integers 1 : : :n. Associated with each element in I is a value from a commutative semigroup S. Let sum refer to the semigroup operator. Examples of such operators over the integers are addition, multiplication and minimum. Two operations are to be implemented, update and query. An update of an interval changes the value associated with that interval. A query of integer k returns the sum of values associated with the intervals which include k. We consider solutions of the class that involves variables storing values in S. Each variable stores the sum of values associated with some subset of I. A query is answered by summing a subset of these variables. An update is accomplished by recomputing the values of the appropriate variables. This class has been used by Fredman and others [F80, BFK81, F81, F81b] for analysis of query problems. If the values associated with the interval are from a commutative group (i.e., inverses exist) then there is a data structure which enables both update and query algorithms of time complexity O(logn) [F79]. For the semigroup problem, the use of range trees enables both update and query algorithms of time complexity O(log 2 n) [W78, L78, LW82, W85]. 1 We present data structures with update and query algorithms of the following complexities. Update Time Query Time O(logn) O(log 2 n) O(logn log logn) O(logn) Table 1 Data Structure and Algorithm We associate each interval [i; j] with a point in a two dimensional plane whose horizontal (x) and vertical (y) coordinates are i and j, the values of the endpoints of the interval, respectively. These points lie within the upper left triangular region of an n by n square. A query of k needs to retrieve the sum of the values associated with all points whose x coordinate is k and whose y coordinate is k. That is, the query region consists of all points which lie in a rectangle whose upper left corner is at (1; n) and whose lower right corner is at (k; k), as illustrated in Figure 1.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Improved Bounds and New Trade-Offs for Dynamic All Pairs Shortest Paths

Let G be a directed graph with n vertices, subject to dynamic updates, and such that each edge weight can assume at most S diierent arbitrary real values throughout the sequence of updates. We present a new algorithm for maintaining all pairs shortest n) amortized time per update and in O(1) worst-case time per distance query. This improves over previous bounds. We also show how to obtain query...

متن کامل

INTERVAL ANALYSIS-BASED HYPERBOX GRANULAR COMPUTING CLASSIFICATION ALGORITHMS

Representation of a granule, relation and operation between two granules are mainly researched in granular computing. Hyperbox granular computing classification algorithms (HBGrC) are proposed based on interval analysis. Firstly, a granule is represented as the hyperbox which is the Cartesian product of $N$ intervals for classification in the $N$-dimensional space. Secondly, the relation betwee...

متن کامل

Relational Databases Query Optimization using Hybrid Evolutionary Algorithm

Optimizing the database queries is one of hard research problems. Exhaustive search techniques like dynamic programming is suitable for queries with a few relations, but by increasing the number of relations in query, much use of memory and processing is needed, and the use of these methods is not suitable, so we have to use random and evolutionary methods. The use of evolutionary methods, beca...

متن کامل

Fr{'e}chet and Hausdorff Queries on $x$-Monotone Trajectories

vspace{0.2cm}In this paper, we design a data structure for the following problem. Let $pi$ be an $x$-monotone trajectory with $n$ vertices in the plane and $epsilon >0$. We show how to preprocess $pi$ and $epsilon$ into a data structure such that for any horizontal query segment $Q$ in the plane, one can quickly determine the minimal continuous fraction of $pi$ whose Fr{'e}chet and Hausdo...

متن کامل

Efficient Queries of Stand-off Annotations for Natural Language Processing on Electronic Medical Records

In natural language processing, stand-off annotation uses the starting and ending positions of an annotation to anchor it to the text and stores the annotation content separately from the text. We address the fundamental problem of efficiently storing stand-off annotations when applying natural language processing on narrative clinical notes in electronic medical records (EMRs) and efficiently ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • Inf. Process. Lett.

دوره 24  شماره 

صفحات  -

تاریخ انتشار 1987